<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import = "ds.ChatWebService" %>
 <%@ page import = "ds.ChatService" %>
 <jsp:useBean id = "chatWebService" scope = "session" class = "ds.ChatWebService">
 </jsp:useBean>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form name="Send_messages" method="POST" action="Send_messages.jsp">
            <input type="text" name="text" value="" />
            <input type="submit" value="Send" name="sendbtn" />
        </form><br>
        <form name="Receive_messages" action="Receive_messages.jsp" method="POST">
            
            
            <input type="submit" value="Refresh" name="refreshbtn" />
        </form>

        <textarea name="chat" rows="15" cols ="40" readonly="true">
        <% if (request.getParameter("texts")!=null){%>
        <%= request.getParameter("texts") %>
        <%}%>
        </textarea>
    </body>
</html>
